﻿Ext.define("Core.view.lienhe.Lienhe", {
    extend: "Ext.form.Panel",
    xtype: "lienhe",
    config: {
        layout: 'vbox',
        items: [
        {
            xtype: "fieldset",
            title: "About Me",
            items: [
            {
                xtype: 'textfield',
                label: 'Name',
                value: "HeoISua",
                readOnly: true,
            },
            {
                xtype: 'textfield',
                label: 'Age',
                value: "25",
                readOnly: true,
            }
            ]
        },
        {
            xtype: 'fieldset',
            title: 'Contact Us',
            instructions: '(email address is optional)',
            //height: 285,
            items: [
                {
                    xtype: 'textfield',
                    label: 'Name'
                },
                {
                    xtype: 'emailfield',
                    label: 'Email'
                },
                {
                    xtype: 'textareafield',
                    label: 'Message'
                }]
        },
        {
            xtype: 'button',
            text: 'Send',
            ui: 'confirm',
            handler: function () {
                this.up('formpanel').submit();
            }
        }]
    }
})